<T:ViewBase x:Class="WPFExcelReport.TGV04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster" />  
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/> 
        <ucd:Divideby1000  x:Key="d1000"/> 
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0" >
            <Button Grid.Row="0" Click="Load_Click" Height="20" Margin="5,0,0,0" Width="20" BorderBrush="White">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Reload.png" />
                </Button.Background>
            </Button>
        </WrapPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwGPACK, Mode=TwoWay}"
                                   x:Name="dlgMaster"    Grid.ColumnSpan="2" Margin="0,0.2,0.2,0" GridLinesVisibility="Vertical" MinRowHeight="5"
                    >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=GPALIEFSCH, Converter={StaticResource ResourceKey=pnum}, Mode=TwoWay}" Header="{Binding Source={Localization:Translate Word=发货单}}" Width="Auto" />
                 <DataGridTextColumn Binding="{Binding Path=GPAAUFKRS, Mode=TwoWay}"   Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GPAAUFLFD, Converter={StaticResource ResourceKey=pnum}, Mode=TwoWay}"   Header="{Binding Source={Localization:Translate Word=销售单}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GPAAUFPOS, Converter={StaticResource ResourceKey=pnum}, Mode=TwoWay}" Width="Auto" /> 
                <DataGridTextColumn Binding="{Binding Path=GAPSPPART,  Mode=TwoWay}"  Header="{Binding Source={Localization:Translate Word=纺批}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GAPFBPART,  Mode=TwoWay}"  Header="{Binding Source={Localization:Translate Word=染批}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GABEM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  Header="{Binding Source={Localization:Translate Word=包装}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GPAAEND, Mode=TwoWay}" Header="{Binding Source={Localization:Translate Word=日期}}" Width="Auto" /> 
                <DataGridTextColumn Binding="{Binding Path=GPAAENB,  Mode=TwoWay}" Header="{Binding Source={Localization:Translate Word=操作人}}"  Width="Auto" /> 
                <DataGridTextColumn Binding="{Binding Path=GPAKG, Converter={StaticResource ResourceKey=d1000}, Mode=TwoWay}" Header="{Binding Source={Localization:Translate Word=KG}}"  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
